<template>
  <div>
    <el-dialog title="批量策略管理" :visible="order" :before-close="close">

  <el-form  ref='form'  :model='form' :rules='rules'>

    <el-form-item label="选择点位：" prop="desc">
    <el-select  placeholder="请选择" style="width:80%"  v-model='form.desc'>
      <!-- 渲染 -->
      <el-option 
      v-for="(item,index) in xzcllist" :key="index"
      :label="item.policyName" :value="item.policyName"
     ></el-option>
     
     
    </el-select>
  </el-form-item>

    
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button @click='close'>取 消</el-button>
    <el-button type="primary" @click='submit'>确认</el-button>
  </div>
</el-dialog>
    
  </div>
</template>

<script>
export default {
  name: 'HrsaasConfig',
  props:{
    order:{
      type:Boolean,
      default:true
    },
    xzcllist:{
    default:()=>[]
    },
  },
  data() {
    return {
      num:1,
      form:{
        desc:'',
      },
      rules:{
        desc:[
          {required:true,message:'请输入',trigger:'blur'},
        ],
      }
    };
  },
// watch:{
//     form(newVal){
//       this.form.productType = newVal.productTypeId
//     }
//   },

  mounted() {
    
  },

  methods: {
    //  清空表格
    close(){
      this.$emit('update:order',false)
       this.$refs.form.resetFields()
      this.form={}
    },
     submit(){
      // this.$message.success('新增成功')
      this.$emit('update:order',false)
      this.$refs.form.reserFileds()
      this.$refs.form={}
      // this.$parents.getList()
    }
  },
};
</script>

<style lang="scss" scoped>

</style>